Beyond Knowing
Ed Tools
Play Quiz
Sign in
Join Sookshmas
Beyond Knowing
Jobs
Ed-Tools
Play Quiz
Amish P Gowda
Wall
Questions
e-Notes
Calculations
MCQs
News/Article
int main() {
int j,num;
printf("Please enter a number :");
scanf("%d",&num);
while(num>0)
{
j=num%10;
if( j!=0 && j!=1 )
{
printf("num is not binary");
break;
}
num=num/10;
if(num==0)
{
printf("num is binary");
}
}
getch();
}
Engineering-IS
Engineering-CS
Posted on
by
Score
Share
Views
Comment(s)
Please
Login
to post your comment or reply to comment
Recent Question Comments
Recent Questions
Top Scored Questions
Scroll
×
Login to India's fastest growing social media for Self-Learners!
Sign in with Google
OR
Not registered?
Create an account
Forgot Password?
×
Join India's fastest growing social media network for learning and education!
Sign in with Google
OR
Already a registered user?
Login